<style>
.text-error{color:red;}
</style>
<form class="form-horizontal" name="CtrlForm" role="form" novalidate="novalidate" ng-submit="submit()" ng-controller='SwiperEditCtrl' style="margin:0 auto;">
	<div class="form-group has-feedback">
	  <label class="col-md-3 control-label">banner图<span class="text-error">*</span></label>
	  
	  <div class="input-group col-md-6">
	  <input type="file" class="form-control" file-model="myFile"/>
	  <span class="input-group-addon" id="basic-addon2"><{:C('banner_width')}>×<{:C('banner_height')}></span>
	  </div>
	</div>
	
	<div class="form-group has-feedback">
	<div class="col-md-6 col-md-offset-3" >
		<img ng-src="__UPLOAD__/{{swiper.banner_path}}" style="width:100%;" ng-hide="base64" />
		<img ng-src="{{base64}}" style="width:100%;" ng-show="base64" />
	</div>
	</div>
	


	<div class="form-group has-feedback">
	  <label for="swiper_title" class="col-md-3 control-label">banner标题</label>
	  <div class="col-md-6">
		<input type="text" class="form-control" id="swiper_title" name="swiper_title" placeholder='请输入banner标题，为空取文章标题' ng-model='swiper.swiper_title'>
	  </div>
	</div>
	
	<div class="form-group has-feedback">
	  <label for="post_id" class="col-md-3 control-label">文章ID</label>
	  <div class="col-md-6">
		<input type="text" class="form-control" id="post_id" name="post_id" placeholder='有文章ID才可以链接到指定文章' ng-model='swiper.post_id'>
	  </div>
	</div>

   <div class="form-group has-feedback">
      <div class="col-md-offset-2 col-md-6">		
		<button type="reset" class="btn btn-default" ng-click="reset()">重置</button>		
        <button type="submit" class="btn btn-primary" ng-disabled="CtrlForm.$invalid">保存</button>
      </div>
   </div>
</form>